package com.example.hotelapp.Utils;

/**
 * 后台API数据接口
 */
public class AppNetConfig {

    //接口前缀
    public static final String ApiAddress = "http://172.18.93.48:8089/";
    //头像加载地址
    public static final String UserImgUrl = ApiAddress +"upload/hotel/usersimage/";
    //酒店图片加载地址
    public static final String HotelImgUrl = ApiAddress +"upload/hotel/hotelimage/";
    //会员
    public static final String memberInformation = "memberInformation/";
    //订单
    public static final String bookingList = "bookingList/";
    //首页
    public static final String homeIndexView = "homeIndexView/";
    //酒店信息
    public static final String hotelInfo = "hotelInfo/";
    //会员类型
    public static final String memberType = "memberType/";
    //支付记录
    public static final String paymentRecord = "paymentRecord/";
    //酒店详细
    public static final String roomInfoView = "roomInfoView/";
    //客房类型
    public static final String roomType = "roomType/";
    //预订
    public static final String bookinfoView = "bookinfoView/";
    //会员注册
    public static final String Register = ApiAddress + memberInformation + "insertMem" +
            "" +
            "berInformation";
    //添加订单
    public static final String InsertbookingList = ApiAddress + bookingList + "insertBookingList";
    //会员登录
    public static final String Login = ApiAddress + memberInformation + "selectAll";
    //首页酒店信息查询
    public static final String SelecthomeIndexView = ApiAddress + homeIndexView + "selectAll";
    //酒店查询
    public static final String selectHotel = ApiAddress + homeIndexView + "selectByName";
    //查询订单
    public static final String SelectbookinfoView = ApiAddress + bookinfoView + "selectAll";
    //酒店详细
    public static final String SelectroomInfoView = ApiAddress + roomInfoView + "selectAll";
    //修改密码
    public static final String ModifyPwd = ApiAddress + memberInformation + "updateMemberInformation";
    //修改已支付
    public static final String UpdatePay= ApiAddress + bookingList + "updateBookingList";
    //刷新音效
    public static final String RefrashMusicUrl = "https://yyw520.obs.cn-south-1.myhuaweicloud.com:443/%E5%88%B7%E6%96%B0%E9%9F%B3%E6%95%88.wav?AccessKeyId=ESH1G7IOB240QX68WD2T&Expires=1640771820&Signature=XHRNW2xVe0bNn57WrcpuZq/Ys3k%3D";
    //视频地址
    public static final String VideoUrl = "https://yyw520.obs.cn-south-1.myhuaweicloud.com:443/happyvideo.mp4?AccessKeyId=ESH1G7IOB240QX68WD2T&Expires=1640683072&Signature=AdNSeASoBQwc0NryqNDNhB5B4Fk%3D";

    //订单类型JSON数据
    public static final String OrderTypeJson = "{\n" +
            "    \"code\": 1,\n" +
            "    \"msg\": \"查询成功\",\n" +
            "    \"data\": [\n" +
            "        {\n" +
            "            \"id\": 1,\n" +
            "            \"type_name\": \"全部\"\n" +
            "        },\n" +
            "        {\n" +
            "            \"id\": 2,\n" +
            "           \"type_name\": \"待支付\"\n" +
            "        },\n" +
            "        {\n" +
            "            \"id\": 3,\n" +
            "            \"type_name\": \"已支付\"\n" +
            "        },\n" +
            "        {\n" +
            "            \"id\": 4,\n" +
            "            \"type_name\": \"已入住\"\n" +
            "        },\n" +
            "{\n" +
            "            \"id\": 5,\n" +
            "            \"type_name\": \"已取消\"\n" +
            "        },\n" +
            "    ]\n" +
            "}";
}
